from typing import List

from pydantic import BaseModel


class Context(BaseModel):
    desc: str
    data: str


class Article(BaseModel):
    article_id: int
    title: str = ""
    contexts: List[Context]
    article_type: int = 1


class ContextDesc(BaseModel):
    desc: str = ""
